package com.jd.sunny.java.designpattern.singleton;

/**
 * @author :����
 * @ClassName:Singleton2
 * @Description: ����ģʽ----�Ƽ�ʹ��
 * @date :2012-8-23����10:41:12
 */
public class Singleton2 {

    /**
     * �������һ��static final �ı������
     */
    private static final Singleton2 singleton2 = new Singleton2();

    /**
     * ˽�л����췽��
     */
    private Singleton2() {

    }

    /**
     * �ύһ���еľ�̬������ȡ�������
     *
     * @return
     */
    public static Singleton2 getInstance() {
        return singleton2;
    }
}
